<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>json</title>
    <script type="text/javascript">
        var json = {
            "name":"张三"
        }
        alert(json.name);
        var json1 = "{'name':'李四'}";

        alert(eval("("+json1+")").name);
    </script>
</head>
<body>

</body>
</html>